{extend name="$_theme_public_layout"/}

{block name="main"}
<div class="content-wrapper">
    <div class="container">
        <section class="content-header">
            <ol class="breadcrumb">
                {$page_config.breadcrumbs|default=''}
            </ol>
        </section>

        <section class="cms-content">
            <div class="content-left">
                {notempty name="post_list"}
                    <ul>
                        {volist name="post_list" id="data"}
                        <li class="wow bounceInUp">
                            <article class="post_main">
                                    <span class="date">
                                        <b>
                                            {$data.create_time|strtotime|'Y',|date}
                                        </b>
                                        {$data.create_time|strtotime|'m-d',|date}
                                    </span>
                                <section class="post_con">
                                    <a href="{:url('cms/index/detail',['id'=>$data['id']])}">
                                        <h2>{$data.title}</h2>
                                    </a>
                                    <div class="excerpt">
                                        {$data.digest}
                                    </div>
                                </section>
                                <a href="{:url('cms/index/detail',['id'=>$data['id']])}" class="imgeffect">
                                    <img src="{$data.cover}" alt="{$data.title}" class="thumb">
                                    <i class="iconfont"></i>
                                </a>
                            </article>
                        </li>
                        {/volist}
                    </ul>
                {else/}
                    <p class="tc">暂无内容</p>
                {/notempty}
            </div>

            <div class="content-right">
                {include file="sidebar" /}
            </div>
        </section>
    </div>
</div>

{/block}

{block name="script"}
 
{/block}
